<?php

$_dimensions = array();

foreach($_GET['dimensions'] as $key=>$var){
  if(!is_numeric($var['height'])) die();
  
  $_dimensions[$key] = array('height'=>htmlspecialchars($var['height']),'color'=>htmlspecialchars($var['color']));

}

$css = "

#border {
	width: 1px;
	height: 1px;
	display: block;
	border-top: {$_dimensions['top']['height']}px solid {$_dimensions['top']['color']};
	border-right: {$_dimensions['right']['height']}px solid {$_dimensions['right']['color']};
	border-bottom: {$_dimensions['bottom']['height']}px solid {$_dimensions['bottom']['color']};
	border-left: {$_dimensions['left']['height']}px solid {$_dimensions['left']['color']};
}

";

echo $css;